/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.gac.gacmod.palette;

import org.gac.gacmod.stepmanager.StepCategory;
import org.openide.nodes.AbstractNode;
import org.openide.util.lookup.Lookups;

/**
 *
 * @author Tomek
 */
public class StepCategoryNode extends AbstractNode{
    
    private StepCategory _category;

    public StepCategoryNode( StepCategory category )
    {
        super( new StepNodeChildren( category ), Lookups.singleton(category));
        _category = category;
        setDisplayName( category.getName());
    }

    @Override
    public String getName()
    {
        return _category.getName();
    }


}
